package com.qfmy.web.app.controller.conmon;

import com.qfmy.common.result.Result;
import com.qfmy.web.app.service.conmon.HotSearchRankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 清风明月
 * @Package com.qfmy.web.app.controller.novel
 * @date 2025/11/02
 * @description 获取热搜标签
 */
@RestController
@RequestMapping("/app/hotSearchRank")
public class HotSearchRankController {

    /**
     * 注入service
     */
    @Autowired
    private HotSearchRankService hotSearchRankService;

    /**
     * 获取热搜标签
     * @return
     */
    @RequestMapping("/getHotSearchRank")
    public Result<List<String>> getHotSearchRank() {
        List<String> list = hotSearchRankService.getHotSearchRank();
        return Result.ok(list);
    }


}
